<?php

class Course_Widget_PaidItemController extends Engine_Content_Widget_Abstract
{
  public function indexAction()
  {
    $viewer = Engine_Api::_()->user()->getViewer();
    if( !Engine_Api::_()->core()->hasSubject() ) {
      return $this->setNoRender();
    }

    // Get subject and check auth
    $subject = Engine_Api::_()->core()->getSubject('course');
    
   if($subject->status == 1){
       
   }
   else{
       return $this->setNoRender();
   }
  }
}